﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Bop.Dto
{
    public class KeyWorkStepInput : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 节点Id
        /// </summary>
        public Guid NodeId { get; set; }

        /// <summary>
        /// 工序性质
        /// </summary>
        public string ProcessesCharacteristic { get; set; }

        /// <summary>
        /// 开始
        /// </summary>
        public DateTime? StartData { get; set; }

        /// <summary>
        /// 结束
        /// </summary>
        public DateTime? EndData { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }

    }
}
